<template>
	<view class="page">
		<uni-search-bar class="uni-mt-10" radius="100" placeholder="请输入ID 号" clearButton="none"
			cancelButton="none" @confirm="search" />	
		<view class="padding ">
		
		</view>
	</view>
</template>

<script>
	import scode from "../../library/scode.js"
	export default { 
		data () {
			return {

			}
		},
		methods: {
			search(e) {
				let params = `?id=${e.value}&from=qrcode`;
				 uni.navigateTo({
				 	url:'./detail'+params
				 })
				// scode.getScode(JSON.stringify(data))
			}
		}
	}
</script>

<style scoped>
	.page{
	    background-color: #f2f2f2;
	}
	.padding {
		padding: 10upx;
		background-color: #fff;
	}
	.padding-lr {
		padding-left: 10upx;
		padding-right: 10upx;
	}
	.flex {
		display: flex;
		align-items: center;
	}
	.margin-left {
		margin-left: 15upx;
	}
	.border-radius {
		border-radius: 15px;
		border: 1px solid rgba(0, 0, 0, .1);
		background-color: #f2f2f2;
	}
	.fs12 {
		font-size: 12px;
	}
</style>